import {
	INIT_LIST_ACTION,
	CHANGE_INPUT_VALUE,
	ADD_TODO_ITEM,
	DELETE_TODO_ITEM,
	GET_TODO_LIST
} from "./actionTypes";

export const initListAction = data => ({
	type: INIT_LIST_ACTION,
	data
});

export const changeInputValue = value => ({
	type: CHANGE_INPUT_VALUE,
	value
});

export const addTodoItem = () => ({
	type: ADD_TODO_ITEM
});

export const deleteTodoItem = index => ({
	type: DELETE_TODO_ITEM,
	index
});

export const getTodoList = () => ({
	type: GET_TODO_LIST
});
